<template>
  <div class="header">
    <div class="left">
      <slot name="left"> </slot>
    </div>
    <div class="center">{{ title }}</div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
    },
  },
};
</script>

<style lang="less" scoped>
.header {
  display: flex;
  height: 40px;
  margin-bottom: 6px;
  background-color: #26a2ff;
  color: #fff;
  justify-content: space-between;
  align-items: center;
}
</style>